package com.bawan.vims.common;

/**
 * HttpClient请求后返回的数据模型
 * <p> Description	: ResponseModel.java </p>
 * <p> Copyright	: Copyright (c) 2015 by FITT</p>
 * <p> Author 		: ZCC </p>
 * <p> Create		: 2015年1月29日 下午5:30:15 </p> 
 * <p> version 		: 1.0 </p>
 */
public class ResponseModel {
	private boolean success = false;
	private Integer statusCode;
	private String responseBody;
	
	public ResponseModel() {
		super();
	}
	
	public ResponseModel(boolean success, Integer statusCode, String responseBody) {
		super();
		this.success = success;
		this.statusCode = statusCode;
		this.responseBody = responseBody;
	}

	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public Integer getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}
	public String getResponseBody() {
		return responseBody;
	}
	public void setResponseBody(String responseBody) {
		this.responseBody = responseBody;
	}	
	
	@Override
	public String toString() {
		return "success:" + success + "; statusCode:" + statusCode + "; responseBodyStr:" + responseBody;
	}
}
